home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / HippoDraw / HippoDrawSrc1.1 / Hippo.subproj / Image.h < prev    next >
Encoding:
Text File  |  1992-04-25  |  516 b   |  32 lines

  1. #import "Graphic.h"
  2.  
  3. @interface Image : Graphic
  4. {
  5.     id image;            /* an NXImage object */
  6.     NXSize originalSize;    /* the original size */
  7.     BOOL alphaOk, dontCache;
  8. }
  9.  
  10. + initialize;
  11.  
  12. /* Creation methods */
  13.  
  14. - initFromStream:(NXStream *)stream allowAlpha:(BOOL)alphaOk;
  15. - free;
  16.  
  17. /* Overridden from superclass */
  18.  
  19. - (BOOL)isOpaque;
  20. - (float)naturalAspectRatio;
  21. - draw;
  22. - setCacheable:(BOOL)flag;
  23. - (BOOL)isCacheable;
  24.  
  25. /* Archiving methods */
  26.  
  27. - write:(NXTypedStream *)stream;
  28. - read:(NXTypedStream *)stream;
  29.  
  30. @end
  31.  
  32.